/**
 *
 */
package hb.software.role.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.hb.software.base.domain.BaseEntity;
import hb.software.role.category.RoleCategory;

/**
 * @author Mie
 *
 */
@Entity
@Table(name = "T_role")
public class Role extends BaseEntity<Long>{
	/**
	 *
	 */
	private static final long serialVersionUID = -1718529427313168431L;
	@Column
	String username;
	@Column
	String password;
	@ManyToOne
	@JoinColumn(name = "GROUP_ID")
	RoleCategory roleCategory;

	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public RoleCategory getRoleCategory() {
		return roleCategory;
	}
	public void setRoleCategory(RoleCategory roleCategory) {
		this.roleCategory = roleCategory;
	}



}
